package com.yu1996.spit.dao;

import com.yu1996.spit.pojo.Spit;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.mongodb.repository.MongoRepository;

public interface SpitDao extends MongoRepository<Spit, String> {

    /**
     * @param parentId 父id
     * @param pageable 分页对象
     * @return org.springframework.data.domain.Page<com.yu1996.spit.pojo.Spit>
     * @description 根据上级ID查询吐槽数据（分页）
     * @date 2019/10/13 21:25
     */
    Page<Spit> findByParentid(String parentId, Pageable pageable);
}
